<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Box_game extends MiisWidget {

    public function init() {
        parent::init();
    }

    public function run() {
        parent::run();
        $data['game'] = Category::model()->findAll(array("condition"=>"state = 1 and parent = 38","order"=>"id desc","limit"=>6));
        $data['parent'] = Category::model()->findByPk(38);
        $this->render('box_game',$data);
    }

}

?>
